package net.ys.service;

import net.ys.bean.AprApollo;
import net.ys.dao.ApiDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: NMY
 * @Date: 2022/3/16
 * @Time: 8:04
 */
@Service
public class ApiService {

    @Resource
    private ApiDao apiDao;

    public long queryApolloCount() {
        return apiDao.queryApolloCount();
    }

    public List<AprApollo> listApollo(int page, int pageSize) {
        return apiDao.listApollo(page, pageSize);
    }
}
